package com.xiaohui.user.designPattern.strategy.handler;

import com.xiaohui.user.designPattern.strategy.PayChannelEnum;
import com.xiaohui.user.designPattern.strategy.PayHandler;
import org.springframework.stereotype.Component;

@Component
public class WxHandler implements PayHandler {
    @Override
    public PayChannelEnum getPayChannel() {
        return PayChannelEnum.WECHAT;
    }

    @Override
    public void dealPay() {
        System.out.println("微信支付");
    }
}
